<?php

/**
 * Created by PhpStorm.
 * User: taizi
 * Date: 2017/4/20
 * Time: 11:31
 */
class  ReserveModel extends BaseModel
{
    var $table = 'reserve';
    var $prikey = 'rid';
    var $_name = 'reserve';
    var $_relation=array(
        'belongs_to_member'=>array(

            'model'=>'member',
            'type'=>BELONGS_TO,
            'foreign_key'=>'user_id',
            'reverse'=>'has_reserve',

        ),


    );
}
